package serveur;

import java.util.Comparator;

import remote.Tweet;

/**
 * Sort tweets depending on their dates
 *
 */
public class TweetDateComparator implements Comparator<Tweet> {

	@Override
	public int compare(Tweet t1, Tweet t2) {
		return t2.getDate().compareTo(t1.getDate());
	}

}
